package com.nd.sdp.android.person2;

import com.nd.sdp.android.person2.di.DaggerPersonComponent;
import com.nd.sdp.android.person2.fly.IFly;
import com.nd.sdp.android.person2.ride.IRide;

import javax.inject.Inject;

public class Person {

    @Inject
    IFly fly;
    @Inject
    IRide ride;

    @Inject
    Person() {
    }

    public void flyAndRide() {
        fly.fly();
        ride.ride();
    }

    public static void main(String[] args) {
        Person person = DaggerPersonComponent.builder().build().person();
        person.flyAndRide();
    }

}
